#include <vector>

#include "DTD_Sequence.h"

DTD_Sequence::DTD_Sequence( std::vector<DTD_Normal *> * contents ) : DTD_Complex( contents )
{

}


//using namespace std;
//
//DTD_Sequence::DTD_Sequence( string name, string card ) : DTD_Contenu( card )
//{
//	this->name = name;
//}

string DTD_Sequence::toString()
{
	string R = contents->at(0)->toString();
	for (unsigned int i = 1; i < contents->size(); i++)
	{
		R += " , ";
		R += contents->at(i)->toString();
	}

	return  " ( " + R + " ) " ;
}
